package com.then.component.club.db.location;

import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;

import com.then.component.club.entity.BaseLocation;
import com.then.component.club.entity.Province;

import java.util.List;

/**
 * Created by 42524 on 2018/2/8.
 */
@Dao
public interface ProvinceDao {



    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void  insert(List<Province> provinces);

    @Query("SELECT * FROM dz_province where id=:provinceId")
    LiveData<BaseLocation> queryProvinceById(String  provinceId);



}
